import java.util.Scanner;

public class Qiuhe {

	public static void main(String[] args) {
		int a = 23, b = -7;
		int c = a % b;
		System.out.println(c);
		// Scanner scan = new Scanner(System.in);
		// System.out.println("输入一个正整数：");
		// int num = scan.nextInt();
		// int sum = 0, i = 0;
		// while (!(num == 0)) {
		// i = num % 10;
		// num = num / 10;
		// sum += i;
		// }
		//
		// System.out.println(sum);

	}

}
